﻿using System.Windows;
using OMIP.HMS.WPFBusiness;
using OMIP.HMS.WPFBusiness.Command;
using OMIP.HMS.WPFBusiness.HMSServiceReference;
using System;
using System.Collections.Generic;

using System.Linq;


namespace OMIP.HMS.WPFBusiness.View
{
        /// <summary>
        /// 实现病人的属性和方法
        /// </summary>
        public class Patient :Entity<PatientModel>
        {
                /// <summary>
                /// 初始化<see cref="Patient"/>病人.
                /// </summary>
                /// <param name="model">病人模型</param>
                public Patient(PatientModel model)
                        : base(model)
                {
                        UpdatePatientCommand = UpdatePatientCommand.Instance;
                        DeletePatientCommand = DeletePatientCommand.Instance;
                }

                #region 常量

                #endregion

                #region 基本属性



                

                /// <summary>
                /// 名称
                /// </summary>
                public string Name
                {
                        get
                        {
                                return Model.Name;
                        }
                        set
                        {
                                Model.Name = value;
                        }
                }

                

                #endregion 基本属性

                #region 扩展属性

                

                
                #endregion 

                #region 命令

                public UpdatePatientCommand UpdatePatientCommand { get; private set; }

                public DeletePatientCommand DeletePatientCommand { get; private set; }

                #endregion
        }
}